package org.vectrics.recruiter.job;

import java.io.Serializable;
import java.util.Date;


/**
 * @author mmoore
 */
public class JobCandidateStatusType implements Serializable {
	public final static String STATUS_CANDIDATE_APPLIED = "cand.appl";
	public final static String STATUS_OFFER = "offer";
	public final static String STATUS_EMPLOYER_REJECTED = "emp.rjct";
	public final static String STATUS_CANDIDATE_REJECTED = "cand.rjct";
	public final static String STATUS_CANDIDATE_HIRED = "hired";
	
    private String code = null;
    private String description = null;
    private Date startDate = null;
    private Date endDate = null;
    
    /**
     * Campo para saber en que estado se puede modificar al 
     * candidato
     */
    private boolean editable = false;
    
    /**
     * @return Returns the code.
     */
    public String getCode() {
        return code;
    }
    /**
     * @param code The code to set.
     */
    protected void setCode(String code) {
        this.code = code;
    }
    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }
    /**
     * @param description The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }
    /**
     * @return Returns the endDate.
     */
    public Date getEndDate() {
        return endDate;
    }
    /**
     * @param endDate The endDate to set.
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    /**
     * @return Returns the startDate.
     */
    public Date getStartDate() {
        return startDate;
    }
    /**
     * @param startDate The startDate to set.
     */
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    /**
	 * @return the editable
	 */
	public boolean isEditable() {
		return editable;
	}
	/**
	 * @param editable the editable to set
	 */
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	public String toString() {
    	return("StatusType{" + this.description + "}");
    }
}
